package com.example.fittrack.domain.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@JsonIgnoreProperties(ignoreUnknown = true)
@EqualsAndHashCode()
@Data
@Entity
@Table(name = "t_basic_info")
public class BasicInfoPo {

    @Id
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Column(name = "employeeName")
    private String employeeName;

    @Column(name = "employeeNo")
    private String employeeNo;
    /**
     * 01-幼儿
     * 02-中小学生
     * 03-成年人
     * 04-老年人
     */
    @Column(name = "employeeType")
    private String employeeType;

    private String phone;

    @Column(name = "birthDate")
    private String birthDate;

    private String sex;

    private Integer grade;

    @Column(name = "createTime")
    private String createTime;

    @JsonSerialize(using = ToStringSerializer.class)
    @Column(name = "userId")
    private Long userId;
}
